function formatDateString(dateString) {
	const year = dateString.substring(0, 4);
	const month = dateString.substring(4, 6);
	const day = dateString.substring(6, 8);
	// 返回格式化后的日期字符串
	return `${year}-${month}-${day}`;
}

function divideWithRemainderPlusOne(dividend, divisor) {
	const quotient = Math.floor(dividend / divisor);
	const remainder = dividend % divisor;
	return remainder > 0 ? quotient + 1 : quotient;
}

function onPullDownRefresh(getData) {
	console.log("刷新")
	getData();
	setTimeout(function() {
		uni.stopPullDownRefresh();
	}, 1000);
}

export default {
	formatDateString,
	divideWithRemainderPlusOne,
	onPullDownRefresh
}